<template>
  <div>
    <div>自定义hook</div>
    <span>count: {{ counter.count }}</span>
    <br />
    <button @click="counter.increment">increment</button>
  </div>
</template>

<script setup lang="ts">
import useCounter from "@/hooks/counter";
const counter = useCounter();
</script>

<style scoped></style>
